﻿$SMTPserver = "smtp-relay.chw.edu"
$fileattachment = "c:\\temp\\CHWActiveSyncUsageReport.csv"
$from = "ExchangeOps@ps.net"
$to = "david_f_ray@dell.com"
$subject = "PowerShell Test"
$emailbody = "this is my very first email send through PowerShell 1.0"

$mailer = new-object Net.Mail.SMTPclient($SMTPserver)
$msg = new-object Net.Mail.MailMessage($from, $to, $subject, $emailbody)
$attachment = new-object Net.Mail.Attachment($fileattachment)
$msg.attachments.add($attachment)
$mailer.send($msg)